\pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f2\b0\i0\ul0\fs28 NetInfo server move\
\
Q: How can I move an existing NetInfo server to another machine?\
\
A: This NextAnswer assumes an existing two-level NetInfo hierarchy. The move of a 3-level NetInfo domain server is similar.\
\
Replace
\i oldserver
\i0 and
\i newserver
\i0 with the hostnames of your existing and new NetInfo servers.\
\
\pard\tx1240\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fi-340\li1240 1) If you want to move the NetInfo server to a new machine, add the machine to the Network first. See Chapter 3 of the Network and System Administration book.\
\
2) Shut down all the machines on your network, except the current master NetInfo server and the new machine which will become the master configuration server.\
\
3) On the new NetInfo server, Launch NetManager. In the Local Configuration change the Hostname and Address from Autoconfigure to their actual values. Click the check box and make the machine a clone NetInfo server.\
\
4) Take a break of around 15 minutes, to allow all the information in the domain to be propagated to
\i newserver
\i0 . \
\
5) On the existing NetInfo server do the following:\
\
\pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fi-320\li1940 • Launch NetInfoManager and open the root domain, then do the following:\
\
\pard\tx960\tx2440\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fi-260\li2440 · rename the master property from
\f0\i\fs24 oldserver
\i0 /network
\f2\fs28 to
\f0\i\fs24 newserver
\i0 /network
\f2\fs28 \
\
· in the machines directory for oldserver, remove the ./network value from the serves property. Leave the other value intact. Make sure that the machines directory contains the following properties:\
\pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fi-320\li1940 • Wait about five minutes, to ensure that the change has propagated to
\i newserver
\i0 .\
\
• Launch Shell or Terminal as root and run the following commands:\
\
\f0\i\fs24\fi0\li3340 oldserver
\i0 #
\b cd /etc
\b0 \
\i oldserver
\i0 #
\b cp -p hostconfig hostconfig.serv
\b0 \
\i oldserver
\i0 #
\b cd netinfo
\b0 \
\i oldserver
\i0 #
\b mv network.nidb network.nidb.serv
\b0 \
\f2\fs28\fi-320\li1940 \
• Edit /etc/hostconfig and change the following parameters to their new values:\
\
\f0\fs24\fi0\li3340 HOSTNAME=-AUTOMATIC-\
INETADDR=-AUTOMATIC-\
NETMASTER=-NO-\
\f2\fs28\fi-320\li1940 \
\pard\tx1240\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\fi-340\li1240 6) Power down both
\i oldserver
\i0 and
\i newserver
\i0 . Power on
\i newserver
\i0 and then power on
\i oldserver
\i0 , once
\i newserver
\i0 is fully up and running. Verify the value of the master property in NetInfoManager. Now boot the rest of the machines on your network\